package demo2;

import java.util.Deque;
import java.util.LinkedList;
import java.util.List;
import java.util.Stack;

/**
 * Created with IntelliJ IDEA.
 * Description:链式栈
 * User: LianBao
 * Date: 2024-03-31
 * Time: 15:44
 */

/**
 * 双向链表可以当做栈来使用
 */
public class LinkedStack {
    public static void main(String[] args) {
        LinkedList<Integer> stack1 = new LinkedList<>();
        stack1.push(1);
        //双端队列Deque
        Deque<Integer> stack2 = new LinkedList<>();
    }
}
